<?php

defined('_JEXEC') or die('Restricted access');

function modChrome_rest($module, &$params, &$attribs)
{
	$headerLevel = isset($attribs['headerLevel']) ? (int) $attribs['headerLevel'] : 3;
	if (!empty ($module->content)) : ?>
	<div class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>"> 
		<?php if ($module->showtitle != 0) : ?>      
		<h<?php echo $headerLevel; ?> class="module-title"><?php echo $module->title; ?></h<?php echo $headerLevel; ?>>
		<?php endif; ?>
		<div class="res">
	    <div class="module-content">
	        <?php echo $module->content; ?>
        </div>
        </div></div>
        <div class="modul"></div>
	<?php endif;
}

function modChrome_jaw($module, &$params, &$attribs)
{
	if (!empty ($module->content)) : ?>
	<div class="module">
        <div class="inner">
		<?php if ($module->showtitle != 0) : ?>
		<div class="h3c"><div class="h3r"><div class="h3l"><h3 class="module-title"><?php echo $module->title; ?></h3></div></div></div>
		<?php endif; ?>
	    <div class="module-body">
	        <?php echo $module->content; ?>
        </div>
        </div>
	</div>
	<?php endif;
}
function modChrome_float($module, &$params, &$attribs)
{
	if (!empty ($module->content)) : ?>
	<div class="module left">
        <div class="inner">
		<?php if ($module->showtitle != 0) : ?>
		<div class="h3c"><div class="h3r"><div class="h3l"><h3 class="module-title"><?php echo $module->title; ?></h3></div></div></div>
		<?php endif; ?>
	    <div class="module-body">
	        <?php echo $module->content; ?>
        </div>
        </div>
	</div>
	<?php endif;
}
?>